//
//  SMContentSplitCtrl.swift
//  SmartMachine
//
//  Created by Sherman's iMac on 2019/11/6.
//  Copyright © 2019 Smart. All rights reserved.
//

import Cocoa

class SMContentSplitCtrl: NSSplitViewController {

    var leftItem : NSSplitViewItem!
    var rightItem : NSSplitViewItem!
    
    override func viewDidLoad() {
        super.viewDidLoad()
        
        // Do view setup here.
        let leftCtrl = SMLeftContentViewCtrl()
//        leftCtrl.viewDidLoad()
        
        self.leftItem = NSSplitViewItem.init(viewController: leftCtrl)
        self.leftItem?.minimumThickness = 200.0
        self.leftItem?.maximumThickness = 350.0
        
        let rightCtrl = SMRightContentViewCtrl.init()
        self.rightItem = NSSplitViewItem.init(viewController: rightCtrl)
        
        self.insertSplitViewItem(self.leftItem, at: 0)
        self.insertSplitViewItem(self.rightItem, at: 1)
    }
}
